import request from '@/utils/request'

// 查询资安稽核事项列表
export function listSecurityAuditMatter(query) {
  return request({
    url: '/mine/securityAuditMatter/list',
    method: 'get',
    params: query
  })
}

// 查询资安稽核事项详细
export function getSecurityAuditMatter(sId) {
  return request({
    url: '/mine/securityAuditMatter/' + sId,
    method: 'get'
  })
}

// 新增资安稽核事项
export function addSecurityAuditMatter(data) {
  return request({
    url: '/mine/securityAuditMatter',
    method: 'post',
    data: data
  })
}

// 修改资安稽核事项
export function updateSecurityAuditMatter(data) {
  return request({
    url: '/mine/securityAuditMatter',
    method: 'put',
    data: data
  })
}

// 删除资安稽核事项
export function delSecurityAuditMatter(sId) {
  return request({
    url: '/mine/securityAuditMatter/' + sId,
    method: 'delete'
  })
}

// 导出资安稽核事项
export function exportSecurityAuditMatter(query) {
  return request({
    url: '/mine/securityAuditMatter/export',
    method: 'get',
    params: query
  })
}

// 调取 专案管理稽核各项下拉框操作
export function getInformationValue(field) {
  return request({
    url: '/mine/securityAuditMatter/optionValue/'+ field,
    method: 'get'
  })
}

// 调取 工号查询操作   //  操作
export function getuserIdValue(listMgr) {
  return request({
    url: '/system/user/getEmpById/'+ listMgr,
    method: 'get'
  })
}

export function listEmpByKey(listMgr) {
  return request({
    url: '/system/user/listEmpByKey/'+ listMgr,
    method: 'get'
  })
}
// 调取 权限查询操作
export function getPowerId(sId) {
  return request({
    url: '/mine/securityAuditMatter/getPower/'+ sId,
    method: 'get'
  })
}
